/**
 * 
 */
package com.oscarmovie.service;

import com.oscarmovie.dao.StatisticsDao;
import com.oscarmovie.model.Statistics;



/**
 * @author zhengda
 *
 */
public class StatisticsServiceImpl implements StatisticsService {
	
	private StatisticsDao statisticsDao;
		

	/**
	 * @return the statisticsDao
	 */
	public StatisticsDao getStatisticsDao() {
		return statisticsDao;
	}

	/**
	 * @param statisticsDao the statisticsDao to set
	 */
	public void setStatisticsDao(StatisticsDao statisticsDao) {
		this.statisticsDao = statisticsDao;
	}

	/* (non-Javadoc)
	 * @see com.oscarmovie.service.StatisticsService#save(org.hibernate.stat.Statistics)
	 */
	
	public void save(Statistics statistics) {
		statisticsDao.save(statistics);

	}

	/* (non-Javadoc)
	 * @see com.oscarmovie.service.StatisticsService#loadStatisticsByMovieId(int)
	 */
	
	public Statistics load(int id) {
		// TODO Auto-generated method stub
		return statisticsDao.load(id);
	}

}
